home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19971216-19980424 / 000303_news@newsmaster….columbia.edu _Wed Mar 18 10:33:53 1998.msg < prev    next >
Internet Message Format  |  1998-04-22  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA09097
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Wed, 18 Mar 1998 10:33:53 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA19169
  7.     for kermit.misc@watsun; Wed, 18 Mar 1998 10:33:52 -0500 (EST)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
  9. From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: highlighting patterns on the screen in K95
  12. Date: 18 Mar 1998 15:33:51 GMT
  13. Organization: Columbia University
  14. Lines: 49
  15. Message-ID: <6eopgv$c6g$1@apakabar.cc.columbia.edu>
  16. References: <6eojlt$kee$1@chagall.cti.nl>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8500
  19.  
  20. In article <6eojlt$kee$1@chagall.cti.nl>, Pim Zandbergen <pim@cti.nl> wrote:
  21. : Is there some way in K95 to define patterns that, when they
  22. : appear on the screen, are highlighted by K95 ?
  23. : And if so, would it be possible to associate a command with that pattern
  24. : and execute the command, passing along the pattern when clicking
  25. : on this pattern, much like clicking on URL's ?
  26. : I have seen this feature in a competing product, which I found
  27. : very appealing. Unfortunately, the pattern matching language
  28. : in this product is very limited. I would prefer regular expression
  29. : pattern matching.
  30.  
  31. This is not a current feature. We will add it to the list.
  32.  
  33. What K95 does have is CONNECT mode triggers which cause CONNECT mode
  34. to exited when any of a list of triggers is received from the host.
  35. The controlling script may then use a SWITCH statement on \v(trigger)
  36. to determine what should be done in response to the receipt of the
  37. trigger.
  38.  
  39. If you can instruct the host application to perform the highlighting
  40. then you can also use Kermit macros assigned to a mouses events to
  41. perform special actions.  The following variables and functions are
  42. very useful for this purpose:
  43.  
  44.    \v(mousecurx) - the current x coord of the mouse
  45.    \v(mousecury) - the current y coord of the mouse
  46.    \v(select)    - if a drag event, the text selected
  47.    
  48.    \fscrstr(ny,nx,n1)
  49.      ny = integer.
  50.      nx = integer.
  51.      n1 = integer.
  52.    Returns string:
  53.      The string at Terminal-screen coordinates (nx,ny), length n1,
  54.      blanks included.
  55.  
  56. Before the MouseURL Kverb was created I used to use the following
  57. macro to perform a similar function:
  58.  
  59.   define url run start \m(browser) \v(select),-
  60.     if terminal-macro connect
  61.   set mouse Button 1 Alt Drag \Kurl
  62.  
  63.     Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
  64.                  The Kermit Project * Columbia University
  65.        612 West 115th St #716 * New York, NY * 10025 * (212) 854-1344
  66.     http://www.columbia.edu/kermit/k95.html * kermit-support@columbia.edu